#1155 – Bug with Article copy

Status: Closed - Category: Showtime Image Gallery
Hi Lefteris,

I found a bug within Showtime Image gallery.
If you have an article with the showtime field and already have images assigned to this article, than you cannot copy the article. There is an error message. to the image

The article is created in the database and shown in the frontend (e.g. category blog) but not shown in the backend because the entry in the database workflow_associations is missing. If I create this entry manually then the article is visible again in the backend, but when I open it I get another error message to the image

I would have never thought of copying an article with a gallery assigned but our new apprentice just did it.

Maybe there could be an error message which tells that it is not possible to copy this article because it has a gallery. But the entry in the com_content database then also has to fail so that there are no dead articles.

Kind regards,
Tanja Vogt
Hi Tanja,

I just tested and you are totally right. Our javascript messes the gallery id in the form and that triggers the error.
A quick fix is to edit file administrator/components/com_showtime/js/jquery.showtime.js and modify lines 69-71 from
      var updateValueField = function () {
        valueField.val(container.find('.qq-upload-success').length ? 'ok' : '');
      };

to:
      var updateValueField = function () {
        var val = galleryId ? galleryId : 'ok';
        valueField.val(container.find('.qq-upload-success').length ? val : '');
      };


You may need to clean browser cache after applying this.

Note this is a quick fix. The complete fix will ship with the next update.

Regards

 
Hi Lefteris,

thank you for your quick response.
The script works as expected.

Kind regards,
Tanja Vogt
You are welcome.
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Note: Our support team is currently on vacation, so please anticipate slightly longer response times. Thank you for your understanding!

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review