?
avatar uglyeoin
uglyeoin
4 Jan 2016

Steps to reproduce the issue

Create a new menu item, fill in the required fields, press enter/return.

Expected result

Expected behaviour is save menu item (and return to menu in question). i.e. exactly the same as save & close.

Actual result

You arrive at the create menus page. The item does not get saved.

System information (as much as possible)

System Information
Setting Value

PHP Built On Linux mail.sfworksdev.co.uk 2.6.32-431.5.1.el6.x86_64 #1 SMP Wed Feb 12 00:41:43 UTC 2014 x86_64
Database Version 5.5.37
Database Collation utf8_general_ci
PHP Version 5.4.37
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.4.8 Stable [ Ember ] 24-December-2015 19:30 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36

Additional comments

avatar uglyeoin uglyeoin - open - 4 Jan 2016
avatar uglyeoin uglyeoin - change - 4 Jan 2016
The description was changed
avatar brianteeman
brianteeman - comment - 5 Jan 2016

I can confirm this


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

avatar brianteeman brianteeman - change - 5 Jan 2016
Status New Confirmed
avatar infograf768
infograf768 - comment - 5 Jan 2016

Tests here show that this happens ONLY when the pointer is focussed inside a field, whether the menu item (and anything else in joomla back-end btw, each redirecting to different pages) is new or not.
When it is not new, it checks out the item.

Afaik enter/return has never be equivalent to Save in J. It only works for Search.

avatar infograf768
infograf768 - comment - 5 Jan 2016

It "could" work with a supplementary js targetting keyCode == 13 for keydown for the Save button I guess.

avatar Fedik
Fedik - comment - 5 Jan 2016

Correct behavior for Joomla admin forms, when you push Enter:
nothing happens

Because we use JavaScript Joomla.submitform to submit the forms in administrator side, when user explicitly pushes the Save or Close or any other button.

Described here issue happens due <button> tag in new modal markup, that inside our <form> , that make <form> behavior like described in the first comment here.

avatar Fedik
Fedik - comment - 5 Jan 2016

in theory, the solution is to add type="button" (like <button type="button">...</button>) to all these buttons in the modal markup, or replace them to simple <a> tag

avatar Fedik
Fedik - comment - 9 Jan 2016

Fix is more hard than I expected ... need to search all call of JHtml::_('bootstrap.renderModal',... and edit 'footer' => '<button ... :smile:
Hope there will be someone more brave than me :smile:

avatar wojsmol
wojsmol - comment - 10 Jan 2016

@Fedik If will not find anyone brave the next few hours, I can handle this. Currently in Poland it is 4 in the morning and I have to rest :smile:

avatar wojsmol
wojsmol - comment - 10 Jan 2016
avatar wojsmol
wojsmol - comment - 17 Jan 2016

@wilsonge Please close as #8874 is marged :smile:

avatar wilsonge wilsonge - change - 17 Jan 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-01-17 21:57:10
Closed_By wilsonge
avatar wilsonge wilsonge - close - 17 Jan 2016
avatar wilsonge wilsonge - close - 17 Jan 2016
avatar wilsonge
wilsonge - comment - 17 Jan 2016

Ty!

avatar uglyeoin
uglyeoin - comment - 18 Jan 2016

Thanks

Add a Comment

Login with GitHub to post a comment