User tests: Successful: Unsuccessful:
When adding new category, I noticed that I was getting a Notice on my PHP log.
The notice was because the publish_id field did not have any value.
So adding a default value to 1, will point the parent id category to root, what normally wood and the notice will stop
BTW, I can't reproduce the Notice here. No PHP notice and cat parent_id set to 1 when no parent is chosen.
Which PHP version do you use?
It looks like the patch proposed does not create any issue though.
Could you post the full message and, if possible, a call stack ?
For some reason this is bothering me, parent_id should always be a required field for categories since all categories must at minimum have the root as parent. However it is by no means assured that someone couldn't have somehow gotten their root into a row that is not the first row. In that case it would be pretty confusing. I'd rather see us force parent_id to be required I think. Are you doing this in an extension that is not a core extension when this happens?
Thanks for coding this, Paulo!
While we’re transitioning to a new integrated tracker, could you report the issue on our current main tracker at JoomlaCode and cross-reference each with a link to other? Here’s the process for reporting on the other tracker:
http://docs.joomla.org/Filing_bugs_and_issues
Alternatively, let me know if you’d like me to create it for you and I can go ahead and do that.
Thanks in advance and thanks again for coding this, Paulo!
I went ahead and submitted the tracker item:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30836
Thanks again, Paulo!
The related item on the issue tracker has been closed
Please create a joomlacode tracker and cross reference here.