Skip to content

[FIX] red on red text when "A category is mandatory" on tiki-editpage.tpl , tiki-galleries.tpl and tiki-edit_blog.tpl.

Mike KOTA requested to merge kotamike55/tiki:FiX-red-on-red into master

Description

In some places where the category is mandatory when registering without selecting one, a warning error message appears in red and its background also prevents us from seeing the message correctly.

Steps to test

there are two ways to test this sollution. The first is to go to the template/tiki-editpage.tpl file and put the code

{tr}A category is mandatory{/tr}
apart from the condition: {if isset($category_needed) && $category_needed eq'y'} and there you could go nicely on the edition of a page and see you appear directly this part but with the error then if you wanted to see the right result you will just have to replace the line with :
{tr}A category is mandatory{/tr}
by code :
{tr}A category is mandatory{/tr}
If this way of doing things is not satisfactory then I will show you the second way of doing things that is done directly online.

Expected result

by doing this replacement you will see the colors being replaced. from Spicy Red to Orange attenuated for attention messages.

Merge request reports