× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

Possible Bug? 'Item Saved Successfully'

1 год 7 мес. назад #9994 от Gary Hurdman
Gary Hurdman создал тему: Possible Bug? 'Item Saved Successfully'
Hi,

I think I have found a bug.

in the Model when a form is NOT saved because FALSE was passed back to the controller

public function save($data)
{...
.
.

if ($status !=6 && $status !=7)
{
$app->enqueueMessage(Text::_('WARNING! - This trader has is neither Casual or licensed - Status = '.$status), 'warning');
return false; //Don't save this data.
}
.
.
}

In the controller:

The 'Item Saved Successfully' message is always shown

I think it should be like this...

public function save($key = NULL, $urlVar = NULL)
{
.
.
.
.
// Check in the profile.
if ($return)
{
$model->checkin($return);
$this->setMessage(Text::_('COM_BCC_MACCS_MARKET_STALLS_ITEM_SAVED_SUCCESSFULLY'));
}

There doesn't appear to be any condition around the message otherwise???

Cheers - Paul

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

1 день 23 ч. назад #10284 от Zoey
Zoey ответил в теме Possible Bug? 'Item Saved Successfully'
Hi, I think I have found a bug. in the Model when a form is NOT saved because FALSE was passed back to the controller The screen/form are not in edit mode. No data is passed. I can successfully save with it (which is another issue... if I really have an issue with what data I ... Unfortunately, when I attempt to verify the step, I receive the following error message "The Create Records element isn't properly configured. This error is likely due to a bug in the React Server Components bundler, which was triggered after running the npm run dev command. image ...
signlanguagealphabet.org/

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Время создания страницы: 0.179 секунд
Работает на Kunena форум

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.