<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->getNumArticles()</SPAN><SPAN style="text-decoration: underline; color: rgb(51, 102, 255);"> > 0}</SPAN> then VIEW ALL POSTS <SPAN style="text-decoration: underline; color: rgb(51, 102, 255);">{$category-> </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> <<A href="mailto:oscar@renalias.net">oscar@renalias.net</A>> 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>> editarticlecategories.template<BR>> {if $category->getNumArticles() > 0} get published articles only<BR>> <td>{check_perms perm=view_articles}<a href=" admin.php?<BR>> op=editPosts&amp;showCategory={$category->getId()}<BR>> &amp;showStatus=0&amp;showMonth=-1">{/check_perms}({$category-><BR>> getNumAllArticles()}){check_perms perm=view_articles}</a>{/ <BR>> check_perms}</td><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><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"><<A href="http://www.westbrooks.org">http://www.westbrooks.org</A>></FONT></P> <BR class="Apple-interchange-newline"> </DIV><BR></DIV></BODY></HTML>