Changeset View
Changeset View
Standalone View
Standalone View
core/install/upgrades.sql
Context not available. | |||||
UPDATE LanguageLabels | UPDATE LanguageLabels | ||||
SET l1_Translation = 'Field value length is out of range, possible value length from {min_length} to {max_length}' | SET l1_Translation = 'Field value length is out of range, possible value length from {min_length} to {max_length}' | ||||
WHERE PhraseKey = 'LA_ERR_LENGTH_OUT_OF_RANGE'; | WHERE PhraseKey = 'LA_ERR_LENGTH_OUT_OF_RANGE'; | ||||
UPDATE SystemSettings | |||||
SET VariableName = 'NotFoundErrorTemplate' | |||||
WHERE VariableName = 'ErrorTemplate'; | |||||
INSERT INTO SystemSettings (VariableId, VariableName, VariableValue, ModuleOwner, Section, Heading, Prompt, ElementType, Validation, ValueList, DisplayOrder, GroupDisplayOrder, Install, HintLabel) | |||||
VALUES (DEFAULT, 'FatalErrorTemplate', 'error_fatal', 'In-Portal', 'in-portal:configure_advanced', 'la_section_SettingsWebsite', 'la_config_error_template', 'text', '', '', 10.04, 0, 0, null); | |||||
Context not available. | |||||
alex: Several more issues with this:
# If a variable is renamed in `upgrades.sql` then it have no… | |||||
Not Done ReplyThe DisplayOrder column value (the 10.04 in above SQL) should be unique across same configuration group. Right now it exactly matches value of NoPermissionTemplate system setting. You need to:
I usually use SQL similar to this to shift up/down system settings in particular sub-group: UPDATE SystemSettings SET DisplayOrder = ROUND(DisplayOrder + 0.01, 2) WHERE Section = 'x' and Heading = 'y' AND DisplayOrder > z alex: The `DisplayOrder` column value (the `10.04` in above SQL) should be unique across same… | |||||
Not Done ReplyJust noticed that used label doesn't match system setting name and should be la_config_ FatalErrorTemplate. You can see on screenshot above that two system settings have identical translation. alex: Just noticed that used label doesn't match system setting name and should be `la_config_… |
Several more issues with this: