jamespot-front-business 1.2.13 → 1.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm.js CHANGED
@@ -4690,7 +4690,7 @@ function renderDisplays(studioApp) {
4690
4690
  Object.entries(studioApp.views).forEach(([viewName, viewContent]) => {
4691
4691
  if (Object.prototype.hasOwnProperty.call(internal2XmlView, viewName)) {
4692
4692
  const viewField = Object.entries(viewContent)
4693
- .filter((a) => a[1].isUsed)
4693
+ .filter((a) => a[1].isUsed && (viewName !== 'view' || a[0] !== 'title'))
4694
4694
  .sort((a, b) => a[1].pos - b[1].pos);
4695
4695
  toRet += `<display view="${internal2XmlView[viewName]}${viewName === 'view' && studioApp.manifest.displayContentLegacyTable ? 'Disabled' : ''}" mode="${viewName === 'view' ? 'view' : 'form'}">
4696
4696
  ${viewField.map(([fieldId, view]) => renderDisplayAttr(fieldId, view)).join('')}
@@ -4993,6 +4993,10 @@ function populateFieldsAndViews(app, appS, state) {
4993
4993
  function buildView(appS, registeredFields, displayName, displayValue, tables, state) {
4994
4994
  const newName = installedToV2ViewNames[displayName];
4995
4995
  appS.views[newName] = {};
4996
+ if (newName === 'view') {
4997
+ const [localFieldIdTitle, localFieldTitle] = getTitleToView({ fixedValue: undefined, ref: 'title' });
4998
+ appS.views[newName][localFieldIdTitle] = localFieldTitle;
4999
+ }
4996
5000
  displayValue.composants.forEach((viewComponent, index) => {
4997
5001
  let field = undefined;
4998
5002
  if (viewComponent.name && ignoredFields.includes(viewComponent.name)) {
@@ -5002,6 +5006,9 @@ function buildView(appS, registeredFields, displayName, displayValue, tables, st
5002
5006
  if (fieldIdx === -1 && fixedInfo) {
5003
5007
  switch (fixedInfo.ref) {
5004
5008
  case 'title':
5009
+ if (newName === 'view') {
5010
+ break;
5011
+ }
5005
5012
  const [localFieldIdTitle, localFieldTitle] = getTitleToView(fixedInfo);
5006
5013
  appS.views[newName][localFieldIdTitle] = localFieldTitle;
5007
5014
  break;