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/cjs.js CHANGED
@@ -4698,7 +4698,7 @@ function renderDisplays(studioApp) {
4698
4698
  Object.entries(studioApp.views).forEach(([viewName, viewContent]) => {
4699
4699
  if (Object.prototype.hasOwnProperty.call(internal2XmlView, viewName)) {
4700
4700
  const viewField = Object.entries(viewContent)
4701
- .filter((a) => a[1].isUsed)
4701
+ .filter((a) => a[1].isUsed && (viewName !== 'view' || a[0] !== 'title'))
4702
4702
  .sort((a, b) => a[1].pos - b[1].pos);
4703
4703
  toRet += `<display view="${internal2XmlView[viewName]}${viewName === 'view' && studioApp.manifest.displayContentLegacyTable ? 'Disabled' : ''}" mode="${viewName === 'view' ? 'view' : 'form'}">
4704
4704
  ${viewField.map(([fieldId, view]) => renderDisplayAttr(fieldId, view)).join('')}
@@ -5001,6 +5001,10 @@ function populateFieldsAndViews(app, appS, state) {
5001
5001
  function buildView(appS, registeredFields, displayName, displayValue, tables, state) {
5002
5002
  const newName = installedToV2ViewNames[displayName];
5003
5003
  appS.views[newName] = {};
5004
+ if (newName === 'view') {
5005
+ const [localFieldIdTitle, localFieldTitle] = getTitleToView({ fixedValue: undefined, ref: 'title' });
5006
+ appS.views[newName][localFieldIdTitle] = localFieldTitle;
5007
+ }
5004
5008
  displayValue.composants.forEach((viewComponent, index) => {
5005
5009
  let field = undefined;
5006
5010
  if (viewComponent.name && ignoredFields.includes(viewComponent.name)) {
@@ -5010,6 +5014,9 @@ function buildView(appS, registeredFields, displayName, displayValue, tables, st
5010
5014
  if (fieldIdx === -1 && fixedInfo) {
5011
5015
  switch (fixedInfo.ref) {
5012
5016
  case 'title':
5017
+ if (newName === 'view') {
5018
+ break;
5019
+ }
5013
5020
  const [localFieldIdTitle, localFieldTitle] = getTitleToView(fixedInfo);
5014
5021
  appS.views[newName][localFieldIdTitle] = localFieldTitle;
5015
5022
  break;