Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 142
    • Merge requests 142
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • erp5erp5
  • Merge requests
  • !2033

erp5_xhtml_style: report error messages on clone as errors

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Titouan Soulard requested to merge tsoulard/erp5:for-mr-pig into master Dec 30, 2024
  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 1

The script Base_createCloneDocument was made to be user-friendly, reporting nice errors instead of throwing when a problems is detected. These errors are displayed using the portal_status_message parameter of Base_redirect, which looks like a warning on XHTML-style, but appears green with RenderJS.

This commit adds an optional parameter portal_status_level to all calls to Base_redirect which are actually errors, so that they also look like a warning or error (orange background) on RenderJS. The behaviour in XHTML-style says identical.

/cc @romain @vpelletier

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: for-mr-pig
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7