thuphinguyen / php-dynamics-crm-2011

Automatically exported from code.google.com/p/php-dynamics-crm-2011
0 stars 0 forks source link

Missing OptionSet Handling #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
The following QueryXML:
$caseQueryXML = <<<END
<fetch version="1.0" count="5" output-format="xml-platform" mapping="logical" 
distinct="false">
  <entity name="incident">
    <attribute name="title" />
    <attribute name="ticketnumber" />
    <attribute name="createdon" />
    <attribute name="incidentid" />
    <attribute name="sfmig_srclientnumber" />
    <order attribute="ticketnumber" descending="false" />
    <filter type="and">
      <condition attribute="ticketnumber" operator="like" value="%CAS-01351-P7W8%" />
    </filter>
    <link-entity name="account" from="accountid" to="customerid" visible="false" link-type="outer" alias="case_account">
      <attribute name="name" />
      <attribute name="createdon" />
    </link-entity>
  </entity>
</fetch>
END;

What is the expected output? What do you see instead?
Should work fine, but we see the following Warnings:
Warning: No OptionSet handling for Type used by field OwnerIdType
Warning: No OptionSet handling for Type used by field CustomerIdType
Warning: OptionSet used by field CustomerIdType has a name clash with another 
OptionSet!
Warning: No OptionSet handling for Type used by field OwnerIdType

Please use labels and text to provide additional information.

Original issue reported on code.google.com by N.M.Pr...@gmail.com on 27 Mar 2012 at 4:02

GoogleCodeExporter commented 9 years ago
Working on this now

Original comment by N.M.Pr...@gmail.com on 27 Mar 2012 at 5:05

GoogleCodeExporter commented 9 years ago
Issue is triggered by <d:OptionSet i:nil="true"/>

PHP 5.2 treats this as a non-empty tag; 5.2.6 and later treat this as an empty 
tag.
Additional check needed to be sure that the OptionSet Type is not null.

Fixed, but not tested (as it works fine on latest versions!)

Original comment by N.M.Pr...@gmail.com on 28 Mar 2012 at 7:27