Pull the fitting out and go to the parts store and match it up with some npt fittings and however many feet of rubber hose to go from the trans to the engine. It will most likely be a 1/4", 3/8" or 1/2" fitting but just as a precaution i would take the fitting to make sure you get the right one, also make sure you seal the ends of the fitting so you don't get any leaks later on. One more option is to just get some hose and put it over the bad line after you cut away most of it leaving about 3" from each fitting to place the hose over and clamp it.