[BUGFIX] Ensure manually updated slug is saved correctly 82/61482/4
authorOliver Bartsch <bo@cedev.de>
Fri, 9 Aug 2019 08:46:51 +0000 (10:46 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Tue, 20 Aug 2019 08:46:09 +0000 (10:46 +0200)
commit6936c06d8d653ab3d77e025ce606d224568324cb
tree6b14c1dc1948b2d178f351acdc1dc683e6731266
parentf571016b6f6aa3f5cfd1735a2beadfc6a5aacdde
[BUGFIX] Ensure manually updated slug is saved correctly

This fixes the bug, that after updating the slug and clicking
the toggle URL button, the slug isn't updated correctly.

Therefore, if the value of the input and read only field differ
after clicking the toggle button, now the updated value
of the input field is written into the read only and hidden field.

Furthermore after recreating the slug, the new value is now also
written into the input field to be present after clicking
the toogle URL button again. Otherwise the recreated slug would be
discarded on save.

Resolves: #86664
Releases: master, 9.5
Change-Id: I1cd8652618a7c5f2f7154c499ef1653bfed73c53
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61482
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Jens Ulrich <jens.ulrich@snk.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Jens Ulrich <jens.ulrich@snk.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Element/SlugElement.ts
typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Element/SlugElement.js