-
Notifications
You must be signed in to change notification settings - Fork 241
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
EZP-28174: Improved error message when target of eznode:// and ezobject:// links doesn't exist #1333
Conversation
@@ -1250,9 +1250,9 @@ function publishHandlerLink( $element, &$params ) | |||
if ( !eZContentObject::exists( $objectID )) | |||
{ | |||
$this->Messages[] = ezpI18n::tr( 'design/standard/ezoe/handler', | |||
'Object %1 does not exist.', | |||
'Invalid link: "%1" target object does not exist.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: inconsistency with other messages, missing : after "%1".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider improvement like this:
Invalid link: "%1". Target object does not exist."
@@ -1273,9 +1273,9 @@ function publishHandlerLink( $element, &$params ) | |||
if ( !$node instanceOf eZContentObjectTreeNode ) | |||
{ | |||
$this->Messages[] = ezpI18n::tr( 'design/standard/ezoe/handler', | |||
'Node %1 does not exist.', | |||
'Invalid link "%1": target node does not exist.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the previous comment.
@@ -1284,9 +1284,9 @@ function publishHandlerLink( $element, &$params ) | |||
if ( !$node instanceOf eZContentObjectTreeNode ) | |||
{ | |||
$this->Messages[] = ezpI18n::tr( 'design/standard/ezoe/handler', | |||
'Node '%1' does not exist.', | |||
'Invalid link "%1": target node does not exist.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the previous comment.
…ct:// links doesn't exists
22ca0d3
to
7bf3809
Compare
Description
This PR improves an error message when target of
eznode://
andezobject://
links don't exist.