Something went wrong while setting issue due date.
Part of the Collection application data is missed
Closed
Part of the Collection application data is missed
Looks like part of the collection application data in the collection view is missed after 1.4.6 core update. This is data available with SobiPro 1.4.5:
<collection allow_contact="true" allow-contact="true" allow_share="true" allow-share="true" label="Send Message" url="/index.php/business-directory/collection?ssid=5ae82336e8fc5">
<button>
<a class="ctrl-collection-list" href="/index.php/business-directory/collection?ssid=5ae82336e8e05"><i class="icon-star"></i> Favourites</a>
</button>
<lists>
<list prompt="New List Name" cid="new" label="Create New List"/>
<list cid="5ae821afec073" label="moja" public="false" url="/index.php/business-directory/collection?cid=5ae821afec073">
<entries>
<entry id="13876"/>
<entry id="13878"/>
<entry id="13884"/>
</entries>
</list>
</lists>
</collection>
and this is same view after update to 1.4.6
<collection>
<button>
<a class="ctrl-collection-list" href="/index.php/business-directory/collection?ssid=5ae821c3b933f"><i class="icon-star"></i> Favourites</a>
</button>
<lists>
<list prompt="New List Name" cid="new" label="Create New List"/>
<list cid="5ae821afec073" label="moja" public="false">
<entries>
<entry id="13876"/>
<entry id="13878"/>
<entry id="13884"/>
</entries>
</list>
</lists>
</collection>
As a temporary workaround for the not properly generated links to the collection lists in teh collection view, can be used following workaround in the common/collection.xsl template file for collectionsList template:
<xsl:template name="collectionsList"> <xsl:variable name="cid" select="php:function( 'SobiPro::Request', 'cid' )" /> <xsl:if test="count(/*/collection/lists/*)"> <ul class="nav nav-pills"> <li> <xsl:if test="not(string-length($cid))"> <xsl:attribute name="class">active</xsl:attribute> </xsl:if> <a href="{/*/collection/button/a/@href}"> <xsl:value-of select="php:function( 'SobiPro::Txt', 'COLLECTIONAPP.ALL_COLLECTED' )" /> </a> </li> <xsl:for-each select="/*/collection/lists/list"> <xsl:if test="@cid != 'new' "> <li> <xsl:if test="@cid = $cid"> <xsl:attribute name="class">active</xsl:attribute> </xsl:if> <a href="{substring-before(/*/collection/button/a/@href,'?')}?cid={@cid}"> <xsl:value-of select="@label" /> </a> </li> </xsl:if> </xsl:for-each> </ul> </xsl:if> </xsl:template>
assigned to @Radek-Suski
changed milestone to %1.4.7
added fixed in vc and removed new labels
added test passed and removed fixed in vc labels
changed milestone to %1.4.7.2
Please register or sign in to reply