Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template name validation is missing #9

Open
dxops opened this issue Sep 18, 2019 · 5 comments
Open

Template name validation is missing #9

dxops opened this issue Sep 18, 2019 · 5 comments

Comments

@dxops
Copy link

dxops commented Sep 18, 2019

  1. Create a template and leave Template Name empty
[2019-09-18 12:18:48] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\NotNullConstraintViolationException: "An exception occurred while executing 'INSERT INTO ibnab_pmanager_template (serialized_data, isSystem, isEditable, name, description, css, format, unit, direction, font, orientation, auteur, margintop, marginleft, marginright, marginbottom, autobreak, parent, content, entityName, hf, type, user_owner_id, organization_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["Tjs=", 0, 1, null, null, null, "A4", "mm", "ltr", "helvetica", "P", null, null, null, null, null, 1, null, "{{ system.appURL }}", "Oro\\Bundle\\OrderBundle\\Entity\\Order", 0, "html", 1, 1]:  SQLSTATE[23502]: Not null violation: 7 ERROR:  null value in column "name" violates not-null constraint DETAIL:  Failing row contains (1, 1, 1, f, t, null, null, null, A4, mm, ltr, P, null, null, null, null, null, t, null, {{ system.appURL }}, Oro\Bundle\OrderBundle\Entity\Order, html, f, Tjs=, helvetica)." at /home/serhii/dev/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php line 57 {"exception":"[object] (Doctrine\\DBAL\\Exception\\NotNullConstraintViolationException(code: 0): An exception occurred while executing 'INSERT INTO ibnab_pmanager_template (serialized_data, isSystem, isEditable, name, description, css, format, unit, direction, font, orientation, auteur, margintop, marginleft, marginright, marginbottom, autobreak, parent, content, entityName, hf, type, user_owner_id, organization_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [\"Tjs=\", 0, 1, null, null, null, \"A4\", \"mm\", \"ltr\", \"helvetica\", \"P\", null, null, null, null, null, 1, null, \"{{ system.appURL }}\", \"Oro\\\\Bundle\\\\OrderBundle\\\\Entity\\\\Order\", 0, \"html\", 1, 1]:\n\nSQLSTATE[23502]: Not null violation: 7 ERROR:  null value in column \"name\" violates not-null constraint\nDETAIL:  Failing row contains (1, 1, 1, f, t, null, null, null, A4, mm, ltr, P, null, null, null, null, null, t, null, {{ system.appURL }}, Oro\\Bundle\\OrderBundle\\Entity\\Order, html, f, Tjs=, helvetica). at /home/serhii/dev/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php:57, Doctrine\\DBAL\\Driver\\PDOException(code: 23502): SQLSTATE[23502]: Not null violation: 7 ERROR:  null value in column \"name\" violates not-null constraint\nDETAIL:  Failing row contains (1, 1, 1, f, t, null, null, null, A4, mm, ltr, P, null, null, null, null, null, t, null, {{ system.appURL }}, Oro\\Bundle\\OrderBundle\\Entity\\Order, html, f, Tjs=, helvetica). at /home/serhii/dev/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:107, PDOException(code: 23502): SQLSTATE[23502]: Not null violation: 7 ERROR:  null value in column \"name\" violates not-null constraint\nDETAIL:  Failing row contains (1, 1, 1, f, t, null, null, null, A4, mm, ltr, P, null, null, null, null, null, t, null, {{ system.appURL }}, Oro\\Bundle\\OrderBundle\\Entity\\Order, html, f, Tjs=, helvetica). at /home/serhii/dev/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:105)"} []
@ibnab
Copy link

ibnab commented Sep 18, 2019

Yes is old issue should make js validation before and or make not required (is common in old and new) , we will fix it . But all you're other open issue almost for old version .

@dxops
Copy link
Author

dxops commented Sep 18, 2019

I'm using 76c3a6f together with OroCommerce 1.6, 76c3a6f cloned from master branch. Isn't it supported?

@ibnab
Copy link

ibnab commented Sep 18, 2019

We're stopping adding new code for master branch - , So we're focusing on OroCommerce 3 and higher version with brunch to3
Duplicate index
Migration Problem
Not Blank - Config field errors
-----> was fixed in new version as preview button is disabled in the new version too
So we will fix the Template name issue ASAP

@dxops
Copy link
Author

dxops commented Sep 18, 2019

Got it @ibnab , thanks. Feel free to close any tasks now.

@ibnab
Copy link

ibnab commented Sep 18, 2019

Thanks @dxops Even we don't have any Orocommerce 1.6 installed on the local machine -_-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants