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

[2.1.14] document number hook broken #1485

Closed
Zeromax opened this issue Jul 7, 2015 · 6 comments
Closed

[2.1.14] document number hook broken #1485

Zeromax opened this issue Jul 7, 2015 · 6 comments
Labels
Milestone

Comments

@Zeromax
Copy link

Zeromax commented Jul 7, 2015

since b8fba25 the return value from the $GLOBALS['ISO_HOOKS']['generateDocumentNumber'] is not used anymore.

I have to save the value by my own cause saving of the value is moved inside of the try catch.
Otherwise my modified document_number would never be saved.

@aschempp
Copy link
Member

This does not make sense to me, as the try-catch should not change anything, and the hook is not even in those code lines. Can you further explain the problem?

@Zeromax
Copy link
Author

Zeromax commented Jul 15, 2015

Yes it changes it ;) cause you moved the try catch inside the if clause ->

if ($this->arrData['document_number'] == '') {

And so the Database update itself.

@aschempp
Copy link
Member

That's not true. Check out the diff without whitespaces: b8fba25?w=1

The if statement is here since every version 2.x of Isotope: 53028b0#diff-0f55d18c670385e4d53dba5ad92a381aR1378

@aschempp
Copy link
Member

Hah! Now I realized the problem. You're right, sorry, my fault.

@aschempp aschempp added the bug label Jul 16, 2015
@aschempp aschempp added this to the 2.1.15 milestone Jul 16, 2015
@Zeromax
Copy link
Author

Zeromax commented Jul 16, 2015

@aschempp No problem. It is a bit tricky and took some time for me to see it too ;)

@aschempp
Copy link
Member

Fixed in 2d2bae8

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

No branches or pull requests

2 participants