#1155 Posted in ‘Showtime Image Gallery’

Latest post by Lefteris Kavadas on Friday, 02 February 2024 11:10 EET

Yannick Lämmel
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

Lefteris Kavadas
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

Yannick Lämmel
Hi Lefteris,

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

Kind regards,
Tanja Vogt

Lefteris Kavadas
You are welcome.

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 .

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