? Pending

User tests: Successful: Unsuccessful:

avatar mttronc
mttronc
7 Nov 2015

If field media has attribute preview set to true, php complains about $showPreview not being declared and hence no preview is being shown.

Notice: Undefined variable: showPreview in /var/www/joomla/administrator/templates/isis/html/layouts/joomla/form/field/media.php on line 72

Looks like in the case switch in administrator/templates/isis/html/layouts/joomla/form/field/media.php there is a break that is not supposed to be there, since leaving $showPreview undefined in some cases.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar mttronc mttronc - open - 7 Nov 2015
avatar mttronc mttronc - change - 7 Nov 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Nov 2015
Labels Added: ?
avatar dgt41
dgt41 - comment - 7 Nov 2015

Protostar override is a copy paste of this file, so I would like to ask for the same correction there. Thanks!

avatar zero-24 zero-24 - change - 7 Nov 2015
Milestone Added:
avatar yvesh yvesh - test_item - 9 Nov 2015 - Tested successfully
avatar yvesh
yvesh - comment - 9 Nov 2015

I have tested this item :white_check_mark: successfully on 58efabf

Works fine. Good work!


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

avatar zero-24 zero-24 - change - 9 Nov 2015
Easy No Yes
avatar zero-24 zero-24 - change - 9 Nov 2015
Category Administration UI/UX
avatar waader waader - test_item - 15 Nov 2015 - Not tested
avatar waader
waader - comment - 15 Nov 2015

I have not tested this item.

I could not reproduce the problem. Can anybody give a hint how to test this one.


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

avatar mttronc
mttronc - comment - 16 Nov 2015

@waader

You can modify modules/mod_custom/mod_custom.xml line 39 and add the attribute preview="true" to the media field.

If you now select a mod_cutom module in the Joomla administration and choose tab Options, PHP shows an undefined variable notice and there is no eye icon and no preview image in front of the media input form.

avatar waader
waader - comment - 16 Nov 2015

Thanks @mttronc Mmmhh. Before asking I did excatly what you described.

I use latest staging on Win7 with php 5.5.x on ampps, notices are definitely displayed and your patch is not applied. But I can not reproduced this behaviour. No notice and I can see the eye icon.

Ok. I will retry tomorrow on a linux server.

avatar waader waader - test_item - 17 Nov 2015 - Tested successfully
avatar waader
waader - comment - 17 Nov 2015

I have tested this item :white_check_mark: successfully on 58efabf

With everything cleaned up (browser cache, fresh installation) I didnĀ“t get the notice but I could see the problem with the eye icon. Applying your patch solves this problem. Thanks!


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

avatar zero-24 zero-24 - change - 17 Nov 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 17 Nov 2015

RTC Thanks. This should go into 3.5.0 ;)


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

avatar joomla-cms-bot joomla-cms-bot - change - 17 Nov 2015
Labels Added: ?
avatar rdeutz rdeutz - change - 17 Nov 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-11-17 16:18:10
Closed_By rdeutz
avatar rdeutz rdeutz - close - 17 Nov 2015
avatar joomla-cms-bot joomla-cms-bot - close - 17 Nov 2015
avatar joomla-cms-bot joomla-cms-bot - change - 17 Nov 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment