<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hello,<DIV>   Shouldn't the correct fix to make sure that the num_published_articles field of the articles_categories table gets updated correctly when deleting posts?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>--Paul</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On May 27, 2007, at 10:42 PM, Ahmad Saleh wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">As I said before, when you delete all posts in the same category this category will show you that it has (0) posts [in editarticlecategories page].<BR><BR>when i look at editarticlecategories.template at line 67 I saw that you check first if there is any published articles <SPAN style="text-decoration: underline; color: rgb(51, 102, 255);">{if </SPAN><SPAN style="font-weight: bold; text-decoration: underline; color: rgb(51, 102, 255);">$category-&gt;getNumArticles()</SPAN><SPAN style="text-decoration: underline; color: rgb(51, 102, 255);"> &gt; 0}</SPAN> then VIEW ALL POSTS <SPAN style="text-decoration: underline; color: rgb(51, 102, 255);">{$category-&gt; </SPAN><SPAN style="font-weight: bold; text-decoration: underline; color: rgb(51, 102, 255);">getNumAllArticles()</SPAN><SPAN style="text-decoration: underline; color: rgb(51, 102, 255);">}</SPAN> else print (0).<BR><BR> <DIV><SPAN class="gmail_quote">On 5/27/07, <B class="gmail_sendername">Oscar Renalias</B> &lt;<A href="mailto:oscar@renalias.net">oscar@renalias.net</A>&gt; wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Is that supposed to be a patch?<BR><BR>On 27 May 2007, at 14:16, Ahmad Saleh wrote:<BR><BR>&gt; editarticlecategories.template<BR>&gt; {if $category-&gt;getNumArticles() &gt; 0} get published articles only<BR>&gt;     &lt;td&gt;{check_perms perm=view_articles}&lt;a href=" admin.php?<BR>&gt; op=editPosts&amp;amp;showCategory={$category-&gt;getId()}<BR>&gt; &amp;amp;showStatus=0&amp;amp;showMonth=-1"&gt;{/check_perms}({$category-&gt;<BR>&gt; getNumAllArticles()}){check_perms perm=view_articles}&lt;/a&gt;{/ <BR>&gt; check_perms}&lt;/td&gt;<BR>&gt; _______________________________________________<BR>&gt; pLog-svn mailing list<BR>&gt; <A href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</A><BR>&gt; <A href="http://limedaley.com/mailman/listinfo/plog-svn"> http://limedaley.com/mailman/listinfo/plog-svn</A><BR><BR>_______________________________________________<BR>pLog-svn mailing list<BR><A href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</A><BR><A href="http://limedaley.com/mailman/listinfo/plog-svn"> http://limedaley.com/mailman/listinfo/plog-svn</A><BR></BLOCKQUOTE></DIV><BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">pLog-svn mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://limedaley.com/mailman/listinfo/plog-svn">http://limedaley.com/mailman/listinfo/plog-svn</A></DIV> </BLOCKQUOTE></DIV><BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">--</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Paul Westbrook</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><A href="mailto:paul@westbrooks.org">paul@westbrooks.org</A></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">&lt;<A href="http://www.westbrooks.org">http://www.westbrooks.org</A>&gt;</FONT></P> <BR class="Apple-interchange-newline"> </DIV><BR></DIV></BODY></HTML>