No Code Attached Yet
avatar PhilETaylor
PhilETaylor
22 Aug 2021

Steps to reproduce the issue

4.0-dev
Create a contact in the backend
Login to the frontend as a super admin and go directly to

http://example.com/index.php/component/contact/category/uncategorised?Itemid=101

see:
Screenshot 2021-08-22 at 16 49 09

Click Edit

Expected result

Edit form populated with the item detail.

Actual result

Edit form not populated, because getInt is converting philtaylor to 0 and not pre-converting the slug to the id.

NOTE THAT IF YOU: Add a menu item, "List Contacts in a category" to a menu, then the edit button will then work. However the edit button SHOULD be able to be used without a menu item being published in the menu. There is no point displaying an edit button that cannot be used.

Same thing happens with articles, if there are no menu items that point to com_content, then the edit button just loads a blank form and not the edit form for the article whose edit button you clicked.

The expectation is that you should not need menu items published, just to use edit buttons that are displayed to you.

Additional comments

avatar PhilETaylor PhilETaylor - open - 22 Aug 2021
avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Aug 2021
avatar brianteeman
brianteeman - comment - 22 Aug 2021

Confirmed

avatar PhilETaylor PhilETaylor - change - 22 Aug 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 22 Aug 2021
avatar PhilETaylor PhilETaylor - change - 7 Mar 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-03-07 18:36:42
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - close - 7 Mar 2022

Add a Comment

Login with GitHub to post a comment