1. jimbo
  2. Bug Report
  3. Thursday, October 15 2015, 01:16 AM
Hi, I'm not sure if this is a known bug. I've tested with various conditions and it seems to be an issue.

For example, I have an image gallery with image fields (image1, image2, etc.). When I set a condition to hide image2 (if image1 is empty) it does not work if the 'use crop & webcam' option is selected. The image2 field hides ok but when I upload an image (image1) then the image2 field does not show.

Everything works fine if the 'use crop & webcam' option is not selected.
jimbo Accepted Answer
Basic
Hi, I'm having another issue with my image gallery;

I've set all fields above image1 (image2,3,etc.) to only show if image1 is not empty (and so on). It works well so long as crop/upload is not selected (as mentioned above). But when I go to delete the images only image1 is available to delete.

Am I doing something stupid with my conditions or does anyone else experience this issue with image fields (nb - I have similar conditions set up for text fields and they work fine)?

Thanks.
  1. more than a month ago
  2. Bug Report
  3. # 1
admin Accepted Answer
Admin
Hi,
this is a bug. replace file /components/com_jsn/assets/js/imgSelect.js with attached file ;) (unzip first)
Attachments (1)
  1. more than a month ago
  2. Bug Report
  3. # 2
jimbo Accepted Answer
Basic
Hi,

thanks, that seems to have fixed the first issue (of conditional fields not appearing when webcam option is selected).

The second issue is still there however. If I save my profile (say after uploading 3 images) and then attempt to go back to edit my profile again. Only the first image is view-able to edit with no way of editing the 2nd or 3rd image (without deleting the 1st one and replacing it, which allows the original 2nd image to be view-able again).
  1. more than a month ago
  2. Bug Report
  3. # 3
admin Accepted Answer
Admin
Yes, you have right!

at file /administrator/components/com_jsn/models/fields/image.php replace at line 179 from:
$html[]='<input id="'.$this->id.'" type="hidden" name="imgSelect_'.$this->element['name'].'" class="input_'.$this->element['name'].'"/>

to
$html[]='<input value="'.$this->value.'" id="'.$this->id.'" type="hidden" name="imgSelect_'.$this->element['name'].'" class="input_'.$this->element['name'].'"/>


We will add these fix in next release (next week)
  1. more than a month ago
  2. Bug Report
  3. # 4
jimbo Accepted Answer
Basic
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.