Adding metadata element to relationship

edited June 2020 in General Support

CollectiveAccess - Providence - V 1.7.8

Platform - Ubuntu 20.04
PHP v7.4.3
mariadb 10.3

Created metadataElement, Date of marriage

Created userInterface, Marriage,
restricted to entity x entity, individual

Added to Marriage a screen, marriage,

Added Date of Marriage to screen, marriage.

Created entity, individual, George B. Foote, Jr.

Added relationship, to spouce, Lisa Foote

Clicked on paperclip to add marriage info (Date of Marriage)

Result is the following error (relevant configuration is below):

Fatal error: Uncaught Error: Call to a member function getParameter() on null in /var/www/html/app/lib/ResultContext.php:617 Stack trace: #0 /var/www/html/app/lib/BaseInterstitialController.php(127): ResultContext->getParameter() #1 /var/www/html/app/lib/Controller/RequestDispatcher.php(273): BaseInterstitialController->Form() #2 /var/www/html/app/lib/Controller/AppController.php(113): RequestDispatcher->dispatch() #3 /var/www/html/index.php(120): AppController->dispatch() #4 {main} thrown in /var/www/html/app/lib/ResultContext.php on line 617

How do I resolve this?

Thanks,

George

<metadataElement code="date_of_marriage" datatype="DateRange">
  <labels>
    <label locale="en_US">
      <name>Date of marriage</name>
      <description>Date of marriage</description>
    </label>
  </labels>
  <typeRestrictions>
    <restriction>
      <table>ca_entities_x_entities</table>
      <type/>
      <settings>
        <setting name="minAttributesPerRow">1</setting>
        <setting name="maxAttributesPerRow">1</setting>
        <setting name="minimumAttributeBundlesToDisplay">1</setting>
      </settings>
    </restriction>
  </typeRestrictions>
</metadataElement>

<userInterface code="marriage" type="ca_entities_x_entities" typeRestrictions="d_spouse" includeSubtypes="0">
  <labels>
    <label locale="en_US">
      <name>Marriage</name>
    </label>
  </labels>
  <userAccess>
    <permission user="gbf" access="edit"/>
  </userAccess>
  <screens>
    <screen idno="screen_26_0" default="1" color="000000" typeRestrictions="d_spouse" includeSubtypes="0">
      <labels>
        <label locale="en_US">
          <name>Marriage</name>
        </label>
      </labels>
      <bundlePlacements>
        <placement code="ca_attribute_d_comments1">
          <bundle>ca_attribute_d_comments</bundle>
        </placement>
      </bundlePlacements>
    </screen>
  </screens>
</userInterface>

<relationshipTable name="ca_entities_x_entities">
  <types>
    <type code="related" default="1">
      <labels>
        <label locale="en_US">
          <typename>is related to</typename>
          <typename_reverse>is related to</typename_reverse>
        </label>
      </labels>
    </type>
    <type code="d_parent_child" default="0">
      <labels>
        <label locale="en_US">
          <typename>parent</typename>
          <typename_reverse>child</typename_reverse>
        </label>
      </labels>
    </type>
    <type code="d_spouse" default="0">
      <labels>
        <label locale="en_US">
          <typename>spouse</typename>
          <typename_reverse>spouse</typename_reverse>
        </label>
      </labels>
    </type>
  </types>
</relationshipTable>

Comments

Sign In or Register to comment.