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

EZP-28174: Improved error message when target of eznode:// and ezobject:// links doesn't exist #1333

Merged
merged 1 commit into from
Nov 29, 2017

Conversation

adamwojs
Copy link
Member

JIRA: https://jira.ez.no/browse/EZP-28174

Description

This PR improves an error message when target of eznode:// and ezobject:// links don't exist.

zrzut ekranu 2017-11-29 o 12 45 54

@@ -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.',
Copy link
Member

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".

Copy link
Member

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.',
Copy link
Member

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.',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the previous comment.

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

Successfully merging this pull request may close these issues.

4 participants