A somewhat longer fix, but imo, better fix. In PS, top menu, go Select>color range, and click on the purple fringing with the eyedropper, this creates a selection. You can improve the selection by taking the '+ eyedropper' in the color range dialog box and click on other hues of purple. You can adjust 'fuzziness' which expands or contracts the range of hues selected - mine was set at @150. In this sample there is some purple in the white (sky) which is brighter, and some on the leaves that is a darker shade. I clicked the + eyedropper on those to get the full selection. If you zoom to 300% you will see that not all the purple is selected. Do an Ok on the color range dialog box, and then go to Select>Modify>expand and enter a pixel number (how much will depend on the original size of your image) on this one I chose 1 pixel. This expands the selection 1 pxl to include most of the purple.
With the selection still active, take the eyedropper from the tool bar and select (in this case) a dark green of one of the leaves. Choose the brush tool and on the option bar above, set the mode to "color" and the opacity to @30%**. Then start brushing the purple away. This only affects the selected areas so you don't have to be careful about brushing and you can use a big brush. Once all the purple is gone and now replaced with green, Select>deselect. This should be good enough, but you could also take the Sponge tool set on the option bar above to "desaturate" and again at 50%, and touch up areas that may not have been selected or that show the 'other side' of the purple - a bright green/blue, usually opposite of where the purple was.
**When any brush is set at a lower opacity - 30% in this case, the hue chosen doesn't come in a full stregnth as long as you don't pick up (let up on the mouse click, or lift the pen if you are using a tablet. Each new stroke over the same area adds more of the dark green, in this case. If the surrounding area is lighter, only hit it once, if darker, more, etc.