Details
-
Bug
-
Resolution: Unresolved
-
Neutral
-
None
-
2.1.3
-
None
Description
While creating a new story, users are not able to use url-slug to define the nodeName. Instead, the system always look at the title (if not null) to name for that node. By checking the code, we saw the logic force to use title only. Please clarify if we need a fix for that.
@Override
protected void write() {
Node item = valueContext.getSingleOrThrow();
boolean isUntitledItem = item.isNew();
form.write(item);
datasource.commit(item);
String jcrName = jcrNameContext.jcrName().nullableValue();
boolean isBlank = jcrName != null && jcrName.length() == 0;
if (isUntitledItem || isBlank) {
updateNodeName(item);
}
datasourceObservation.trigger();
}
Thanks.
Checklists
Acceptance criteria