? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
3 May 2017

When saving an article in frontend one gets 2 notices:

PHP Notice: Undefined index: created_by in /administrator/components/com_content/models/article.php on line 470
PHP Notice: Undefined index: modified_by in /administrator/components/com_content/models/article.php on line 470

Summary of Changes

The validate method is OK in backend as it prevents users without users manager permissions to modify these fields input, but it is unnecessary in frontend as these fields are already Unset in the xml.

Therefore this PR checks for client instead.

Testing Instructions

Before patch, save an article in frontend. The Notices will display in the PHP logs.
After patch no more Notices.

avatar infograf768 infograf768 - open - 3 May 2017
avatar infograf768 infograf768 - change - 3 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 May 2017
Category Administration com_content
avatar infograf768 infograf768 - change - 3 May 2017
The description was changed
avatar infograf768 infograf768 - edited - 3 May 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 May 2017

I have tested this item successfully on 645c59c


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15753.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 3 May 2017 - Tested successfully
avatar AlexRed
AlexRed - comment - 3 May 2017

I have tested this item successfully on 645c59c

Patch ok for me.

Similar problem also in save "Site Settings" in Frontend by super user:

PHP Notice: Undefined index: force_ssl in /opt/lampp/htdocs/Joomla_3.7.1-dev-Development-Full_Package/administrator/components/com_config/model/application.php on line 123
PHP Notice: Undefined index: cache_path in /opt/lampp/htdocs/Joomla_3.7.1-dev-Development-Full_Package/administrator/components/com_config/model/application.php on line 286


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15753.

avatar AlexRed AlexRed - test_item - 3 May 2017 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 May 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 May 2017

RTC after two successful tests.

avatar rdeutz rdeutz - change - 3 May 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-05-03 08:38:48
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 3 May 2017
avatar rdeutz rdeutz - merge - 3 May 2017
avatar infograf768
infograf768 - comment - 3 May 2017

PHP Notice: Undefined index: force_ssl in /opt/lampp/htdocs/Joomla_3.7.1-dev-Development-Full_Package/administrator/components/com_config/model/application.php on line 123
PHP Notice: Undefined index: cache_path in /opt/lampp/htdocs/Joomla_3.7.1-dev-Development-Full_Package/administrator/components/com_config/model/application.php on line 286

looking into these

Add a Comment

Login with GitHub to post a comment