I checked that, it's updated correctly.<br>just replace this line:<br><span class="q">{if $category->getNumArticles() > 0}<br>with this one:<br></span><span class="q">{if $category-></span><span class="q">getNumAllArticles()
</span><span class="q"> > 0}<br><br>Regards,<br> Ahmad<br></span><br><div><span class="gmail_quote">On 5/28/07, <b class="gmail_sendername">Paul Westbrook</b> <<a href="mailto:paul@westbrooks.org">paul@westbrooks.org
</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;"><div style="">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></div><div>--Paul</div><div><br></div><div><span class="q"><br><div><div>On May 27, 2007, at 10:42 PM, Ahmad Saleh wrote:</div><br><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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pLog-svn@devel.lifetype.net</a><br>> <a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://limedaley.com/mailman/listinfo/plog-svn</a><br><br>_______________________________________________<br>pLog-svn mailing list<br><a href="mailto:pLog-svn@devel.lifetype.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
pLog-svn@devel.lifetype.net</a><br><a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://limedaley.com/mailman/listinfo/plog-svn</a><br></blockquote>
</div><br><div style="margin: 0px;">_______________________________________________</div><div style="margin: 0px;">pLog-svn mailing list</div><div style="margin: 0px;"><a href="mailto:pLog-svn@devel.lifetype.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
pLog-svn@devel.lifetype.net</a></div><div style="margin: 0px;"><a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://limedaley.com/mailman/listinfo/plog-svn
</a></div> </blockquote></div><br></span><span class="sg"><div> <p style="margin: 0px;"><font style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Helvetica" size="3">
--</font></p> <p style="margin: 0px;"><font style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Helvetica" size="3">
Paul Westbrook</font></p> <p style="margin: 0px;"><font style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Helvetica" size="3">
<a href="mailto:paul@westbrooks.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">paul@westbrooks.org</a></font></p> <p style="margin: 0px;"><font style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Helvetica" size="3">
<<a href="http://www.westbrooks.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.westbrooks.org</a>></font></p> <br> </div><br></span></div></div><br>_______________________________________________
<br>pLog-svn mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank">
http://limedaley.com/mailman/listinfo/plog-svn</a><br></blockquote></div><br>