Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Payment
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Sep 2012 at 20:11 UTC
Updated:
4 Jan 2014 at 02:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
foopang commentedHi rszrama, is it supposed to be added to the commerce_payment_order_transaction_add_form form in the admin UI? Please review my patch here. Thanks!
Comment #2
rszrama commentedSorry, it's actually supposed to be an Entity API options list callback. I should've included that in the original post but wasn't thinkin. For an example, see where / how we're using the function commerce_order_status_options_list() in core right now.
Comment #3
foopang commentedHi rszrama, thanks for your explanation. Please review my patch again, thanks!
Comment #4
rszrama commentedFor options lists, we shouldn't have any sanitization, though if you were sanitizing something like this, you'd only do the values and not the keys. You can remove the check_plain()'s or I can when I go to commit. For more info, see http://api.drupal.org/api/drupal/modules%21field%21modules%21options%21o...
Comment #5
foopang commentedOK.
Comment #6
rszrama commentedI removed the remaining check_plain() around the option value and committed this. Thanks again, foopang! : )
Commit: http://drupalcode.org/project/commerce.git/commitdiff/741bca9