fix for date for qu menu

This commit is contained in:
Matthew K. Fu JuYuan 2012-06-29 11:41:06 +08:00
parent f66c3d9c0c
commit c0b3798bad
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController
protected
def delete_out_invalid_date_from_params()
if(params[:bulletin]["deadline(1i)"].empty? or params[:bulletin]["deadline(2i)"].empty? or params[:bulletin]["deadline(3i)"].empty?)
if(params[:bulletin]["deadline(1i)"].blank? or params[:bulletin]["deadline(2i)"].blank? or params[:bulletin]["deadline(3i)"].blank?)
params[:bulletin].delete("deadline(1i)")
params[:bulletin].delete("deadline(2i)")
params[:bulletin].delete("deadline(3i)")