Forever quota is shown wrong in user profile

michtoen - February 4, 2009 - 16:10
Project:Quota by role
Version:6.x-7.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

If a content type is set to x forever, the user always see "you can't create..." in its profile.
Its only a cosmetical thing, the quota itself works.

#1

PeterZ - April 10, 2009 - 14:57

I fixed this (and added information about total quota left) by going into quota_by_role.module and changing the line after

if ($per == t('forever'))

to (all one line)

$output .= '<li>' . t('@content_type: You are allowed @limit posts and have @left posts left.', array('@content_type' => $r->content_type, '@left' => $r->limit_to - $total_count, '@per' => $per, '@limit' => $r->limit_to)) . '</li>';

Sorry, don't know how to write patches.

#2

ISchier770 - August 12, 2009 - 10:22

BS"D

Thanks for this! Just implemented it and it works perfectly so that my users see correct quota.

#3

jaykali - August 19, 2009 - 22:59

has dev been patched?

 
 

Drupal is a registered trademark of Dries Buytaert.