Save and Copy Plugin

4 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 11, 2015   (RSS)

By kkegans - April 30, 2015

Is there any update on the image saving issue in the Save and Copy add in? This is a great feature, but the issue with the image uploads updating the original record is a pain.

CMSB Rocks!
Thanks,
Kurt

By kkegans - April 30, 2015

Greg,  Add an item hit Save and Copy and populate the new record with a new image upload. Hit SAVE  and both the first and second record will have the image uploaded in the second record,

There is a note on the ADD ONS page referencing the issue with a comment that it would be worked on in a future release, but it doesn't seem to have been corrected:

Name:Save & Copy Button

Version:1.05 (Released: Aug 1, 2013 -changelog)

Note: There is a known issue where if you click "Save & Copy" on a record, and then try to upload an image right away, the image doesn't appear and it actually adds it to the original record. To get around this just click "Save" and then "Modify" the new record again. We hope to address this limitation in a future release.

CMSB Rocks!
Thanks,
Kurt

By gregThomas - May 11, 2015

Hey Kurt,

I've been doing some testing on our local server, and I was able to replicate the issue and I think I've resolved it.

In the most recent releases of CMSB we upgraded the version of JQuery, and the code that detects the iframes on the page seems to not work correctly. 

I've changed the code on line 55 of saveAndCopy.js from this:

      $('iframe.[id$=_iframe]').each(function(index) {

to this:

      $("iframe[id$='_iframe']").each(function(index) {

and this seems to have resolved the issue in Chrome and FireFox. 

Thanks,

Greg

Greg Thomas







PHP Programmer - interactivetools.com