Jump to content

can't view product details in admin when stock management is off


Kfir Ozer

Recommended Posts

Hello! :)

I just cloned prestashop from github, staying at the develop branch.

I noticed that after installation I can view product details in admin panel properly.

once I disable stock management I get the following exception when trying to view the product again in admin panel:

 

Neither the property "qty_0_shortcut" nor one of the methods "qty_0_shortcut()", "getqty_0_shortcut()"/"isqty_0_shortcut()" or "__call()" exist and have public access in class "Symfony\Component\Form\FormView".

 

Twig_Error_Runtime

  1.               'formManufacturer': form.step1.id_manufacturer,
  2.               'formRelatedProducts': form.step1.related_products,
  3.               'is_combination_active': is_combination_active,
  4.               'has_combinations': has_combinations,
  5.               'formReference': form.step6.reference,
  6.               'formQuantityShortcut': form.step1.qty_0_shortcut,
  7.               'formPriceShortcut': form.step1.price_shortcut,
  8.               'formPriceShortcutTTC': form.step1.price_ttc_shortcut,
  9.               'formCategories': form.step1,
  10.             })
  11.           [spam-filter]

 

 

-----

this problem does not occur on in the 1.7.3.x branch, only in develop.

 

thanks

  • Like 1
Link to comment
Share on other sites

  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...