Project

General

Profile

Support #3854

Wrong final page: a) New > Save > Close, b) New > Save > Delete, c) New > New

Added by Carsten Rose over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
04.06.2017
Due date:
% Done:

100%

Estimated time:
Discuss:

Description

After the URL redirection of 3853, the following functions have to be adjusted. They should not show the previous form r=0, instead the previous+previous is needed.

Happens with:

a) New > Save > Close
b) New > Save > Delete


Related issues

Related to QFQ - Support #3853: New > Save: Reload des Forms mit neuer SIP und neu ersteller recordIdClosed2017-06-04

Related to QFQ - Bug #3530: File Upload bugClosed2017-04-07

Associated revisions

Revision b6cb6285 (diff)
Added by Carsten Rose over 3 years ago

#3854 / Wrong final page: a) New > Save > Close, b) New > Save > Delete
QfqForm.js: Preparation for client, to handle window.location.replace() by new API status 'url-skip-history'. Also changed "(data.redirect === "url" || data['redirect-url'])" to "(data.redirect === "url" && data['redirect-url'])" - CR did not understand the former logic ('or' instead of 'and'). #OPEN#: window.location.replace = 'index.php....' throws an JS exception that it the attribute 'replace' is readonly. Instead "window.location.replace('index.php....')" works as expected.
PROTOCOL.md: add 'url-skip-history'.
save.php: recode to become more readable.
QuickFormQuery.php: getForwardMode() - temporarily fix to update status 'page' to 'url' (bug never caused a problem as long as '||' has been used on client side). Will change 'page' to 'url' asap.

Revision 0893a40a (diff)
Added by Carsten Rose over 3 years ago

API_ANSWER_REDIRECT_URL_SKIP_HISTORY: Implement 'url-skip-history' as an user selectable option.
Manual.rst: update doc of 'url-skip-history'.
DatabaseUpdateData.php: update data structure as well as update given data from 'page' to 'url'.
QuickFormReport.php: remove temporarily fix page/url.
formEditor.sql: update table 'Form.forwardMode' to ('client', 'no', 'url', 'url-skip-history'). FormEditor now uses dynamicUpdate to hide/show FE 'forwardPage'.

History

#1 Updated by Carsten Rose over 3 years ago

  • Related to Support #3853: New > Save: Reload des Forms mit neuer SIP und neu ersteller recordId added

#2 Updated by Carsten Rose over 3 years ago

  • Status changed from New to Closed

The trick was easy: on the page with r=0 (new) the redirection command skips creating a browser history entry.
A 'url-skip-history' is only delivered by the server after creating a new record.

#3 Updated by Carsten Rose over 3 years ago

  • Related to Bug #3530: File Upload bug added

#4 Updated by Carsten Rose over 3 years ago

  • Subject changed from Wrong final page: a) New > Save > Close, b) New > Save > Delete to Wrong final page: a) New > Save > Close, b) New > Save > Delete, c) New > New
  • Status changed from Closed to In Progress
  • % Done changed from 0 to 60

#5 Updated by Carsten Rose over 3 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF