dev/core#530 CiviCase: when creating a new reltype assume client is A
authorAlice Frumin <alice@aghstrategies.com>
Thu, 9 May 2019 16:33:56 +0000 (12:33 -0400)
committerAlice Frumin <alice@aghtrategies.com>
Mon, 10 Jun 2019 15:26:09 +0000 (11:26 -0400)
ang/crmCaseType.js

index 4dc077a37b77625497f1ea9456ad5c32e1365f7a..a1ff51ae5749074c93fd2d019b1e93a5950f9815 100644 (file)
            CRM.loadForm(CRM.url('civicrm/admin/reltype', {action: 'add', reset: 1, label_a_b: roleName}))
             .on('crmFormSuccess', function(e, data) {
               var newType = _.values(data.relationshipType)[0];
-              roles.push({name: newType.label_a_b, displaylabel: newType.label_b_a});
+              roles.push({name: newType.label_b_a, displaylabel: newType.label_a_b});
               // Assume that the case role should be A-B but add both directions as options.
               $scope.relationshipTypeOptions.push({id: newType.label_a_b, text: newType.label_a_b});
               if (newType.label_a_b != newType.label_b_a) {