Problem/Motivation

The display name setting on the quiz settings page doesn't save.

Steps to reproduce

1. navigate to admin/quiz/config/quiz
2. enter a different text into the display name setting text box, ie "Assessment"
3. click the "Save configuration" button

Proposed resolution

The setting should save and the new word(s) should show in the front end

Not sure if this is supposed to work yet or not, but I didn't see an existing issue for yet.

Comments

WorldFallz created an issue. See original summary.

WorldFallz’s picture

Issue summary: View changes
happy047’s picture

Status: Active » Needs review
StatusFileSize
new776 bytes

I got the same issue. After saving, the updated name was not displaying. Created a patch for the issue

jacobbell84’s picture

StatusFileSize
new812 bytes

Doing a reroll for the latest release

djdevin’s picture

This doesn't make sense, it creates a configuration key called (literal) '\Drupal\quiz\Util\QuizUtil::getQuizName()'

# drush cget quiz.settings
revisioning: false
durod: true
[..]
override_admin_feedback: 0
'\Drupal\quiz\Util\QuizUtil::getQuizName()': test123
djdevin’s picture

I think we should actually deprecate this functionality.

Entities in D8 have multiple ways of representing the title, for example as singular, plural, and in lists.

 *   label = @Translation("Quiz"),
 *   label_collection = @Translation("Quiz"),
 *   label_singular = @Translation("quiz"),
 *   label_plural = @Translation("quizzes"),
 *   label_count = @PluralTranslation(
 *     singular = "@count quiz",
 *     plural = "@count quizzes",
 *   ),
 *   bundle_label = @Translation("Quiz type"),

So if you put in "Assessment" we'd have to assume that the plural was "Assessmentes" which is incorrect.

Unlike Drupal 7 in D8+ we have Quiz types so you can specify a label per bundle (visit admin/quiz/quiz-types/manage/quiz) so maybe we should use that instead of a configuration item.

djdevin’s picture

Version: 6.0.0-alpha4 » 6.x-dev
Status: Needs review » Needs work
djdevin’s picture

Category: Bug report » Task
djdevin’s picture

Status: Needs work » Closed (won't fix)
deelite’s picture