⚠ In case you've missed it we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


View page is displaying status= 1 instead of showing "Active"

view dropdown status

  • Please log in to reply
4 replies to this topic

#1 Mohamed Rafiq

Mohamed Rafiq

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 28 August 2013 - 04:11 AM

I am having the status field like

 

$crud->field_type('status_flag','dropdown', array('1' => 'Active', '0' => 'Inactive'));

 

In grid listing page, the status is displaying properly. I donno y in view page its not displaying properly.

 

Kindly do the needful.



#2 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts

Posted 28 August 2013 - 08:08 AM

Hello and welcome to the forums Mohamed Rafiq.

Well as the core developer of the library has mentioned in one of his posts, the view operation has been added to the latest version at the very last minute without making a lot of debugging.

 

So I suggest you go here, and you open an issue there for this.



#3 Mohamed Rafiq

Mohamed Rafiq

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 28 August 2013 - 12:58 PM

Thank you Ninja!

 

Actually  I already went through  "#231Read page not showing relations" when i got issue in set relation. After apply all these changes in library file, it is only worked for 

 

$crud->set_relation('subject_id','gec_subject','subject_name', null, 'subject_name ASC');

 

and not working for the following one....

 

$crud->field_type('status_flag','dropdown', array('1' => 'Active', '0' => 'Inactive'));

 

-----

After edit the grocery curd library as per #231, are the relation working for this array case..?

 

"$crud->field_type('status_flag','dropdown', array('1' => 'Active', '0' => 'Inactive')); 

 

Request : If so means could u share me the modified grocery curd library file....."



#4 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts

Posted 28 August 2013 - 01:10 PM

It is known that the read/view page might contain bugs. These will be corrected on the next versions.

There isn't a code right now that can fix the problem you specify. Sorry.



#5 Mohamed Rafiq

Mohamed Rafiq

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 28 August 2013 - 01:32 PM

@Grocery CRUD Ninja.. Anyhow.. Thank you for ur timely reply :) Great job...! :)







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users