1. Crystal Dionysopoulos
  2. Bug report
  3. Thursday, 05 May 2022
  4.  Subscribe via email
Hi!

I noticed that there are two Joomla messages shown when a hotspot is submitted successfully from the front end and moderation is turned on:

Screen Shot 2022-05-05 at 11.39.31.png

First JLIB_APPLICATION_SUBMIT_SAVE_SUCCESS and then COM_HOTSPOTS_HOTSPOT_SAVED_BUT_NEEDS_MODERATION

I found where it comes from, in com_hotspots/controllers/hotspot.php on lines 196:


$this->setMessage(
JText::_(
($lang->hasKey($this->text_prefix . ($recordId == 0 && $app->isClient("site") ? '_SUBMIT' : '') . '_SAVE_SUCCESS')
? $this->text_prefix
: 'JLIB_APPLICATION') . ($recordId == 0 && $app->isClient("site") ? '_SUBMIT' : '') . '_SAVE_SUCCESS'
)
);


and 233:


// If the user can't edit the state of the hotspot let him know that the hotspot will be published by someone else
if (!$user->authorise('core.edit.state', 'com_hotspots'))
{
$app->enqueueMessage(JText::_('COM_HOTSPOTS_HOTSPOT_SAVED_BUT_NEEDS_MODERATION'));
}
else
{
$app->enqueueMessage(JText::_('COM_HOTSPOTS_HOTSPOT_SAVED_BUT_IT_IS_SET_TO_UNPUBLISHED'));
}


Is there any way to set it so that you only get one of these messages? It feels a little bit redundant to get both (and takes up a lot of space), even though I know they have different purposes.

Thank you!
Attachments (1)
Responses (1)


There are %s replies to this question. If you want to see them you need a valid subscription.
If you have a valid subscription, please login now.
Visit store now

Last questions

Hotspots Pro 6.0.13 compatability with Joomla 5.3.
Running Hotspots Pro 6.0.13 on Joomla 4.4.13 and want to upgrade to Joomla 5.3.1...
2 Replies
Posted on Friday, 04 July 2025
  • New
  • some questions on Hotspots
    Hi, On Hotspots extension : 1) is it possible to add our own map layer / v...
    0 Replies
    Posted on Thursday, 03 July 2025
  • New
  • Trying to resize the image in the comments
    Hey everyone, Basically I am trying to make the images in the comments smalle...
    9 Replies
    Posted on Wednesday, 12 August 2009
    J5 compatibility for Hotspots
    Hi guys, Just started to update my old J3x website. Is there J5 compatibility p...
    2 Replies
    Posted on Monday, 24 February 2025
    • #Hotspots
    • #hotspots Joomla 5
    error message when adding/cofiguring email address
    When configuring the email plugin that send a email message to admin when a new ...
    0 Replies
    Posted on Friday, 09 May 2025