Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

EZP-26899: Handle internal links when displaying RichText fields #796

Merged
merged 1 commit into from
Feb 7, 2017

Conversation

dpobel
Copy link
Contributor

@dpobel dpobel commented Feb 2, 2017

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

Description

This patch makes sure internal links (ezlocation://) links are usable in PlatformUI. If an internal link points to a removed Location or a Location the user is not able to see, the link is just disabled.

Screencast:

Tests

unit test + manual tests

@dpobel dpobel changed the base branch from master to 1.8 February 3, 2017 08:45
@dpobel dpobel force-pushed the ezp-26899_internal_link_browsing branch from 07d2b25 to 656c8b5 Compare February 3, 2017 10:25
attrs = {'loadingError': false};
attrs = {'loadingError': false},
callback = function (error, result, resultCount) {
attrs.loadingError = error ? true : false;
Copy link
Member

Choose a reason for hiding this comment

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

What do you think about writing it like this: attrs.loadingError = !!error;?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hum it's more a matter of taste than anything but the ternary version is maybe a tiny bit more readable :)

@dpobel dpobel merged commit 11b049b into 1.8 Feb 7, 2017
@dpobel dpobel deleted the ezp-26899_internal_link_browsing branch April 19, 2017 12:03
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants