Wrong column names in views

Bug #1170680 reported by Victor Nagy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LenaSYS
Fix Committed
Undecided
Oscar Jonsson

Bug Description

The column names in pretty much all the views are using the old column names. They should be fixed to correspond the correct names. Examples are the views in views/admin like views/admin/index.php and views/admin/manage_course.php

Related branches

Changed in lenasys:
status: New → Confirmed
Oscar Jonsson (c11oscjo)
Changed in lenasys:
assignee: nobody → Oscar Jonsson (c11oscjo)
status: Confirmed → In Progress
status: In Progress → Fix Committed
Revision history for this message
Victor Nagy (galaxyabstractor) wrote :

This is still an issue.

For example in views/admin/manage_course.php:

<tbody>
    <?php
 foreach ($examples as $item):
    ?>
    <tr>
 <td><?php echo $item->name ?></td>
 <td><button class="btn btn-primary" onClick="window.location.href='<?php echo base_url();?>admin/manageexample/<?php echo $cid ?>/<?php echo $item->Name ?>'"><i class="icon-cog icon-white"></i> Manage</button></td>
    </tr>
    <?php endforeach;?>
</tbody>

Should be

<tbody>
    <?php
 foreach ($examples as $item):
    ?>
    <tr>
 <td><?php echo $item->exampleName ?></td>
 <td><button class="btn btn-primary" onClick="window.location.href='<?php echo base_url();?>admin/manageexample/<?php echo $cid ?>/<?php echo $item->exampleName ?>'"><i class="icon-cog icon-white"></i> Manage</button></td>
    </tr>
    <?php endforeach;?>
</tbody>

Notice how $item->name has changed to $item->exampleName. The property "exampleName" is the exact name of the column in the proper database table. All views should be updated to use the proper column names instead.

Changed in lenasys:
status: Fix Committed → New
Sophie (a09sopka)
Changed in lenasys:
status: New → Confirmed
Changed in lenasys:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.