show number of keywords per category in select menu

This commit is contained in:
Uwe Steinmann 2023-01-10 08:11:52 +01:00
parent 913baaa7ce
commit cc144f6c0f

View File

@ -221,7 +221,7 @@ $(document).ready( function() {
foreach ($categories as $category) {
$owner = $category->getOwner();
if ($user->isAdmin() || ($owner->getID() == $user->getID()))
$options[] = array($category->getID(), htmlspecialchars($category->getName()), $selcategory && $category->getID()==$selcategory->getID());
$options[] = array($category->getID(), htmlspecialchars($category->getName()), $selcategory && $category->getID()==$selcategory->getID(), array(array('data-subtitle', $category->countKeywordLists().' '.getMLText('keywords'))));
}
$this->formField(
null, //getMLText("selection"),