We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69a38c9 commit 1ae960eCopy full SHA for 1ae960e
classes/Kohana/Jam/Behavior/Promotable/Purchase.php
@@ -38,7 +38,13 @@ public function model_after_load(Model_Purchase $purchase)
38
{
39
if ($purchase->promo_code_id)
40
41
- $purchase->retrieved('promo_code_text', $purchase->promo_code->code);
+ $promo_code = Jam_Behavior_Paranoid::with_filter(
42
+ Jam_Behavior_Paranoid::ALL,
43
+ function () use ($purchase) {
44
+ return $purchase->promo_code;
45
+ }
46
+ );
47
+ $purchase->retrieved('promo_code_text', $promo_code->code);
48
}
49
50
0 commit comments