Prestashop Core Application V1.4

Unable to add Tab object if all profiles removed

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Canceled
  • Security Level: All-users
  • Labels:
    None
  • Similar issues:
    PSCFI-6445 TECHNICAL ERROR: unable to add the product. Details: Error thrown: [object XMLHttpRequest] Text status: parsererror
    PSCFI-6175 TECHNICAL ERROR: unable to add the product. Details: Error thrown: [object XMLHttpRequest] Text status: parsererror
    PSCFI-6203 Unable to add cart. Error message - Technical Error [object XMLHttpRequest]
    PSCFI-3763 Block possibility to delete employee's profiles
    PSCFI-2262 Technical error: Unable to send login informations. Error Thrown: Object XMLHttpRequest
    PSCFI-5576 TECHNICAL ERROR: unable to add the product. for prestashop 1.4.7.3
    PSCFI-2697 Technical error: Unable to send login informations. Error Thrown: Object XMLHttpRequest
    PSCFI-4916 Unable to add product to cart

Description

It is possible to remove all profiles from the Employees>>Profiles tab, except the Admin one.

In such case, when you try to add a new tab, the add() method returns false -> this is not normal

$tab = new Tab()
// fill all fields
if (!$tab->add())
die('Unable to add')

Activity

Hide
Francois Gaillard added a comment - 17/Jan/12 10:48 AM

Hi,

I'm sorry, I can't reproduce this bug on the current version (1.4.6.2)

Could you please try to upgrade your PrestaShop and tell me the problem is still present ?

Thank you,
Kind regards.

Show
Francois Gaillard added a comment - 17/Jan/12 10:48 AM Hi, I'm sorry, I can't reproduce this bug on the current version (1.4.6.2) Could you please try to upgrade your PrestaShop and tell me the problem is still present ? Thank you, Kind regards.
Hide
Oleacorner-Olivier B. added a comment - 17/Jan/12 11:12 AM

Comparing the 1.4.6 code to the 1.4.5 code, it seems effectively fixed

The line following line has been removed from the Tab::initAccess() method
if (!$profiles OR empty($profiles))
return false;

Can be closed

Show
Oleacorner-Olivier B. added a comment - 17/Jan/12 11:12 AM Comparing the 1.4.6 code to the 1.4.5 code, it seems effectively fixed The line following line has been removed from the Tab::initAccess() method if (!$profiles OR empty($profiles)) return false; Can be closed
Hide
Francois Gaillard added a comment - 30/Jan/12 2:11 PM

Ok,

Thank you for your report,
Kind regards.

Show
Francois Gaillard added a comment - 30/Jan/12 2:11 PM Ok, Thank you for your report, Kind regards.

People

Vote (0)
Watch (0)

Dates

  • Created:
    13/Jan/12 12:53 PM
    Updated:
    30/Jan/12 4:13 PM
    Resolved:
    30/Jan/12 4:13 PM