Filip Jovic
Hi Peter,
I am sorry, but I was not quite right when I said it works! I made mistake by testing it only on already saved articles! When you edit an existing article, changing category filters articles field list to current, i.e. to articles of the category that you choose, but when you are CREATING NEW article, list is not filtered before you hit Save / Save and Close, it's empty no matter what category you choose. So "current" filter now works better, but I suppose it reacts only if $isNew is false. Did not dig around yet, I hope (know) you have quick idea about how to fix it in no time.
Sorry about misinforming you.
Cheers, thank you!
*EDIT: this lines in Filters.php, from getCurrentCategoryId()
if ( ! $id)
{
return 0;
}
I don't think it's necessary, if article is new, it'll filter category ID from category field in form, article id is 0. If it's not new, it'll return some value and then catid comes from database query, right? So just deleting that IF statement above solves this. I hope I'm right, this works as expected.
it keeps it in return 0 forever if article is new.