joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.74k stars 3.65k forks source link

Tags class empty until edit/save #25110

Closed mainetenants closed 5 years ago

mainetenants commented 5 years ago

Create and save a tag during backend article creation. Tag class is empty. Open/edit/save/close tag in backend. Tag class is changed to "label label-info".

I have confirmed this also happened in prior recent versions of Joomla. Joomla 3.9.6

image

SharkyKZ commented 5 years ago

This is an issue with your template. Although class is indeed not saved for tags created on the fly, the default tags layout uses label label-info class as fallback:

https://github.com/joomla/joomla-cms/blob/71266bdfb3b3b9f14c23ee32018c4cbaf9596129/layouts/joomla/content/tags.php#L24

Your template has a tags layout override (templates/shaper_helix3/html/layouts/joomla/content/tags.php) which does not use a fallback:

 <?php $link_class = $tagParams->get('tag_link_class'); ?>
ghost commented 5 years ago

closed as no core Issue. Please ask on Forum if further Informationsa are needed.