Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticket 282996,afficher une consigne dans la description générée #33

Merged
merged 8 commits into from
Jan 9, 2024

Conversation

Yalaeddin
Copy link
Contributor

  • Ajouter l'option Afficher dans la demande générée
  • Insérer les instructions dans la description générée.
  • Implémenter la méthode rendered_value
  • Test

@@ -216,7 +216,7 @@ def self.short_name
end

def rendered_value(section_attributes, textile: true, value_only: false)
'' # Nothing to render
"\n p(wiki-class-#{instruction_type}). #{text}\n"
end
end
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Est-ce qu'il ne faudrait pas gérer 2 cas ici ? Pour prendre en compte le cas où show_in_generated_issue est désactivé ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dans le controller , il y a une condition

if (section.type == "IssueTemplateSectionInstruction") && !section.display_mode.to_i.zero?
             @issue.description.present? ? @issue.description += section.rendered_value([]) : @issue.description = section.rendered_value([])
end

Donc, la méthode n'est pas appelée dans ce cas

@nanego nanego merged commit 95eb897 into nanego:preprod Jan 9, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants