-
-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed dead code #2339
Removed dead code #2339
Conversation
This comment has been minimized.
This comment has been minimized.
@@ -145,12 +127,11 @@ public function decorateStatus($value, $row, $column, $isExport) | |||
/** | |||
* Get row edit url | |||
* | |||
* @return string | |||
* @return false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does other grids behave? do they return string? or string or false? is there an interface?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other return string, for being clickable.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
Check this file https://github.com/OpenMage/magento-lts/blob/1.9.4.x/app/code/core/Mage/Adminhtml/Block/Urlrewrite/Grid.php. Maybe it should be included in the list. line 113: //$this->addExportType('*/*/exportCsv', $this->__('CSV'));
//$this->addExportType('*/*/exportXml', $this->__('XML'));
return parent::_prepareColumns();
}
public function getRowUrl($row)
{
return $this->getUrl('*/*/edit', array('id'=>$row->getId()));
//return $this->getUrl('*/*/view', array('id' => $row->getId())); The export feature does not work and the last two lines seem to do the same thing. |
There is still commented out code in many places. This was only the beginning ... :) |
What do you think about the large number of TODOs that exist in the code? Will someone ever solve them? Those issues still exist? |
I thought about this ... e.g. deleted part. I'd keep most of todo comments (for now), but not within unfinished code. This was there since 1.1.
|
@sreichel I wanted to personally thank you for one of the changes in this PR. In
with code to log the exceptions. The method this belongs to loads all acl rules e.g. during a login. All rules from table |
We have also a lot of |
Description (*)
Removed dead code ...
Contribution checklist (*)