0003-lingo-simplify-extraction-of-subject-for-single-paym.patch
combo/apps/lingo/views.py | ||
---|---|---|
414 | 414 |
if capture_date: |
415 | 415 |
kwargs['capture_date'] = capture_date |
416 | 416 |
if regie.can_pay_only_one_basket_item: |
417 |
if items and len(items) == 1: |
|
418 |
kwargs['subject'] = items[0].subject |
|
419 |
if remote_items and len(remote_items) == 1: |
|
420 |
kwargs['subject'] = remote_items[0].subject |
|
417 |
item = (items or remote_items)[0] |
|
418 |
kwargs['subject'] = item.subject |
|
421 | 419 |
if regie.transaction_options: |
422 | 420 |
kwargs.update(regie.transaction_options) |
423 | 421 |
try: |
424 |
- |