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

Update GlossarySheet.xml #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jmiba
Copy link

@jmiba jmiba commented Jan 10, 2022

some Code fixes ($object.getPropertyReference())

some Code fixes ($object.getPropertyReference())
@@ -52,7 +52,7 @@
<dl>
<dt #if (!$editing && $hasEdit)
class="editableProperty"
data-property="$escapetool.xml($services.model.serialize($object.getProperty('title').reference))"
data-property="$escapetool.xml($services.model.serialize($object.getPropertyReference('title')))"
Copy link
Member

Choose a reason for hiding this comment

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

Note that this causes the glossary application to depends on 12.10.11 (it currently only requires 12.10). I guess it's acceptable, but I'm not really in charge of this application, so I prefer letting someone else decide.

Copy link
Member

Choose a reason for hiding this comment

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

Indeed, it's weird that a new API was added in a bugfix release but it's the case : https://github.com/xwiki/xwiki-platform/blob/78f0a96fbe41e7f5c6242b1386bf1e7255dd1e1e/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/Object.java#L142

@jmiba Does it mean that the xobject doesn't have the "title" property set in some circumstances? That seems weird since that property comes from the GlossaryClass XClass so it should always be there from what I see.

<comment/>
<minorEdit>false</minorEdit>
<syntaxId>xwiki/2.1</syntaxId>
<hidden>true</hidden>
Copy link
Member

Choose a reason for hiding this comment

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

I can't see what's changed above. Maybe new lines?

@vmassol
Copy link
Member

vmassol commented Jan 26, 2022

@jmiba Thanks a lot. Would you mind creating a jira issue at https://jira.xwiki.org/projects/GLOSSARY/summary explaining the bug and setting the affected version of the glossary app? Then, if you could rebase your commit to include a reference to the jira that would be awesome (see https://dev.xwiki.org/xwiki/bin/view/Community/DevelopmentPractices#HRule:AlwaysputaJIRAissuereferenceincommitmessages ).

Thanks again.

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

Successfully merging this pull request may close these issues.

3 participants